<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>结算报表</title>
    <link rel="stylesheet" href="__PUBLIC__/css/payment.css">
    <link rel="stylesheet" href="__PUBLIC__/css/public.css">
    <script type="text/javascript">
    function dosome(week) {
        window.location= "{:U('report/paymentweek')}" + "?week=" + week;
       // $("#container").load(url + "#container");
    }
    </script>
    <style type="text/css" media="screen">
    	table{
    		border:0px;
    	}
    	td{
    		border:0px ;
    	}
    </style>
</head>

<body>
    <table class="table table-bordered table-hover definewidth m10">
        <caption>结算报表</caption>
        <tbody>
            <?php 
				$len = sizeof($list);
			
				for ($i=0; $i < $len ; $i++) { 
					
					if($i%4==0){
						if (!$i) {
							echo "<tr><td><div class='week' onclick='dosome(".$list[$i]['week'].")'><ul><li>周期:".$list[$i]['week']."周</li><li>总成功数:".$list[$i]['count']."</li><li>结算金额:".$list[$i]['total_price']."</li> <li>[".$list[$i]['payment']."]</li></ul></div></td>";
						}else
							echo "</tr><tr><td><div class='week' onclick='dosome(".$list[$i]['week'].")'><ul><li>周期:".$list[$i]['week']."周</li><li>总成功数:".$list[$i]['count']."</li><li>结算金额:".$list[$i]['total_price']."</li><li>[".$list[$i]['payment']."]</li></ul></div></td>";
					}else{
						echo "<td><div class='week' onclick='dosome(".$list[$i]['week'].")'><ul><li>周期:".$list[$i]['week']."周</li><li>总成功数:".$list[$i]['count']."</li><li>结算金额:".$list[$i]['total_price']."</li><li>[".$list[$i]['payment']."]</li></ul></div></td>";
					}
					
				}
				echo "</tr>";

			 ?>
        </tbody>
    </table>
</body>

</html>
